<template>
    <view>
        <view class="content" v-if="contentList.length">
            <!-- 	<view class="classyList">
				<view class="classy" :class="{active:index==classyIndex}" @click="classySelect(index)" v-for="(item,index) in contentList">{{item.typeName}}</view>
			</view> -->

            <view class="produceList">
                <scroll-view scroll-y="true" @scrolltolower="scrollEnd" style="height: 100%;">
                    <view class="title">{{contentList[classyIndex].typeName}}</view>
                    <view class="produce" v-for="(item,index) in contentList[classyIndex].list">
                        <view class="icon">
                            <image :src="item.urlPhoto || '/static/icons/goods.png'"></image>
                        </view>
                        <view class="msg">
                            <view class="name">{{item.goodsName}}</view>
                            <view class="price">优惠价：￥{{item.salePrice}}</view>
                        </view>
                    </view>
                </scroll-view>
            </view>


            <!-- <view class="produceList">
				<view class="title">{{contentList[classyIndex].classy}}</view>
				<view class="produce" v-for="(item,index) in contentList[classyIndex].produceList">
					<view class="icon">
						<image src="/static/icons/goods.png" mode="widthFix"></image>
					</view>
					<view class="msg">
						<view class="name">{{item.name}}</view>
					</view>
				</view>
			</view> -->

        </view>
        <view class="empty" v-if="contentList.length == 0">
            <image src="../../static/icons/empty.png" mode=""></image>
            空空如也
        </view>
        <!-- <view class="noMore" v-if="contentList[classyIndex].produceList.length == 0 || noMore">没有更多数据了</view> -->
        <view class="footer">
            <view class="contents">
                <view class="nav">
                    <image src="/static/icons/home2.png"></image>
                    <view style="color: #FFD700;">首页</view>
                </view>
                <!-- <view class="nav" @click="stock">
                    <image src="/static/icons/stock.png"></image>
                    <view>上货库存</view>
                </view> -->
               <!-- <view class="nav" @click="record">
                    <image src="/static/icons/record.png"></image>
                    <view>上货记录</view>
                </view> -->
                <view class="nav" @click="personal">
                    <image src="/static/icons/personal.png"></image>
                    <view>个人中心</view>
                </view>
                <view class="add" @click="add">上货</view>
            </view>
        </view>
    </view>
</template>

<script>
    import indexManage from "./indexManage.js";
    export default indexManage;
</script>

<style>
    @import url("./indexManage.css");
</style>